package day27;

import javax.swing.JPanel;
import javax.swing.JTextField;
import javax.swing.JButton;
import javax.swing.JList;
import javax.swing.JLabel;
import java.awt.Color;

public class address extends JPanel {
	private JTextField textField;
	private JButton button;

	/**
	 * Create the panel.
	 */
	public address() {
		setLayout(null);
		add(getTextField());
		add(getButton());
		
		JPanel panel = new JPanel();
		panel.setForeground(Color.CYAN);
		panel.setBounds(0, 270, 450, 20);
		add(panel);
		panel.setLayout(null);

	}

	private JTextField getTextField() {
		if (textField == null) {
			textField = new JTextField();
			textField.setBounds(12, 20, 300, 39);
			textField.setColumns(10);
		}
		return textField;
	}
	private JButton getButton() {
		if (button == null) {
			button = new JButton("입력");
			button.setBounds(341, 28, 97, 23);
		}
		return button;
	}
}
